Optimal. Leaf size=133 \[ \frac {2 b^2 B \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d (a+b)}+\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac {2 b B \sin (c+d x)}{a^2 d \sqrt {\cos (c+d x)}}+\frac {2 B F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a d}+\frac {2 B \sin (c+d x)}{3 a d \cos ^{\frac {3}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.56, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {21, 2802, 3055, 3059, 2639, 3002, 2641, 2805} \[ \frac {2 b^2 B \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d (a+b)}+\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac {2 b B \sin (c+d x)}{a^2 d \sqrt {\cos (c+d x)}}+\frac {2 B F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a d}+\frac {2 B \sin (c+d x)}{3 a d \cos ^{\frac {3}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 2639
Rule 2641
Rule 2802
Rule 2805
Rule 3002
Rule 3055
Rule 3059
Rubi steps
\begin {align*} \int \frac {a B+b B \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x))^2} \, dx &=B \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x))} \, dx\\ &=\frac {2 B \sin (c+d x)}{3 a d \cos ^{\frac {3}{2}}(c+d x)}+\frac {(2 B) \int \frac {-\frac {3 b}{2}+\frac {1}{2} a \cos (c+d x)+\frac {1}{2} b \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))} \, dx}{3 a}\\ &=\frac {2 B \sin (c+d x)}{3 a d \cos ^{\frac {3}{2}}(c+d x)}-\frac {2 b B \sin (c+d x)}{a^2 d \sqrt {\cos (c+d x)}}+\frac {(4 B) \int \frac {\frac {1}{4} \left (a^2+3 b^2\right )+a b \cos (c+d x)+\frac {3}{4} b^2 \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{3 a^2}\\ &=\frac {2 B \sin (c+d x)}{3 a d \cos ^{\frac {3}{2}}(c+d x)}-\frac {2 b B \sin (c+d x)}{a^2 d \sqrt {\cos (c+d x)}}-\frac {(4 B) \int \frac {-\frac {1}{4} b \left (a^2+3 b^2\right )-\frac {1}{4} a b^2 \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{3 a^2 b}+\frac {(b B) \int \sqrt {\cos (c+d x)} \, dx}{a^2}\\ &=\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}+\frac {2 B \sin (c+d x)}{3 a d \cos ^{\frac {3}{2}}(c+d x)}-\frac {2 b B \sin (c+d x)}{a^2 d \sqrt {\cos (c+d x)}}+\frac {B \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 a}+\frac {\left (b^2 B\right ) \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{a^2}\\ &=\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}+\frac {2 B F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a d}+\frac {2 b^2 B \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 (a+b) d}+\frac {2 B \sin (c+d x)}{3 a d \cos ^{\frac {3}{2}}(c+d x)}-\frac {2 b B \sin (c+d x)}{a^2 d \sqrt {\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 4.12, size = 211, normalized size = 1.59 \[ \frac {B \left (\frac {2 \left (2 a^2+9 b^2\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a+b}+\frac {6 \sin (c+d x) \left (\left (b^2-2 a^2\right ) \Pi \left (-\frac {b}{a};\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )+2 a (a+b) F\left (\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )-2 a b E\left (\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )\right )}{a \sqrt {\sin ^2(c+d x)}}+\frac {4 \sin (c+d x) (a-3 b \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)}+8 a \left (2 F\left (\left .\frac {1}{2} (c+d x)\right |2\right )-\frac {2 a \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a+b}\right )\right )}{6 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B b \cos \left (d x + c\right ) + B a}{{\left (b \cos \left (d x + c\right ) + a\right )}^{2} \cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 3.34, size = 452, normalized size = 3.40 \[ -\frac {2 \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, B \left (-\frac {2 b^{3} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), -\frac {2 b}{a -b}, \sqrt {2}\right )}{a^{2} \left (-2 a b +2 b^{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}-\frac {b \left (-\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{a^{2} \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}+\frac {-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}{6 \left (-\frac {1}{2}+\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{3 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}}{a}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B b \cos \left (d x + c\right ) + B a}{{\left (b \cos \left (d x + c\right ) + a\right )}^{2} \cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {B\,a+B\,b\,\cos \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{5/2}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________